package com.heima.sc.user.api.fallback;

import com.heima.sc.user.api.OrderApi;
import com.itheima.sc.response.UserOrderDTO;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
@Component
public class OrderApiFallback implements OrderApi {
    @Override
    public List<UserOrderDTO> findOrderDTO(String username) {
        List<UserOrderDTO> list=new ArrayList<>();
        list.add(new UserOrderDTO().setUsername(username).setId("-1"));
        return list;
    }
}
